Specification Mutation for Test Generation and Analysis
نویسنده
چکیده
Mutation analysis is a fault-based testing technique that uses mutation operators to introduce small changes into a program or specification, producing mutants, and then chooses test cases to distinguish the mutants from the original. Mutation operators differ in the coverage they get. They also differ in the number of mutants they generate. Consequently, selecting mutation operators is an important problem whose solution affects the effectiveness and cost of mutation testing. We use the automated test generation and evaluation method that combines a model checker and mutation analysis. We define a set of mutation operators and implement a mutation gener ator for specifications written in SMV, a popular model checker. To select the most effective mutation operators and sets of operators, we compare them using both theoretical and experimental methods. We construct mutation detection conditions and develop a technique to theoretically compare mutation operators. We apply mutation coverage and pairwise coverage metrics to empirically compare the effectiveness of mutation operators. To detect a fault in a program, a test case must cause the fault to affect the outputs, not just intermediate variables. We develop a method that uses a model checker to guarantee that tests cause visible output failures. We find that mutation operators form a hierarchy with respect to detection capability; we can skip a test for a mutation from an easier-to-detect mutation operator in the hierarchy, provided that we detect a corresponding mutation from a harder-to-detect operator. Our theoretical technique allows us to prove that the hierarchy applies to arbitrary logic expressions, whereas previous results apply only to logic expressions in disjunctive normal form. Based on analysis and empirical evaluation, we recommend mutation operators and sets of mutation operators that yield good test coverage at a reduced cost. Our experiments show that specification-based mutation can be applied to test programs; it gets good program-based coverage. Our method for guaranteeing fault visibility is very effective for black-box testing of programs which have a large intermediate state. This thesis shows that specification-based mutation can be used to economically generate effective tests.
منابع مشابه
Testing-for-Trust: The Genetic Selection Model Applied to Component Qualification
This paper presents a method and a tool for building trustable OO components. The methodology is based on an integrated design and test approach for OO software components. It is particularly adapted to a design-by-contract approach, where the specification is systematically derived into executable assertions (invariant properties, pre/postconditions of methods). This method, based on test qual...
متن کاملTrustable Components: Yet Another Mutation-Based Approach
This paper presents the use of mutation analysis as the main qualification technique for: estimating and automatically enhancing a test set (using genetic algorithms), qualifying and improving a component’s contracts (that is the specification facet) measuring the impact of contractable robust components on global system robustness and reliability. The methodology is based on an integrated desi...
متن کاملMutation of Model Checker Specifications for Test Generation and Evaluation
Mutation analysis on model checking specifications is a recent development. This approach mutates a specification, then applies a model checker to compare the mutants with the original specification to automatically generate tests or evaluate coverage. The properties of specification mutation operators have not been explored in depth. We report our work on theoretical and empirical comparison o...
متن کاملEffect of Gamma Irradiation on Morphological Traits of Three Varieties of Sesame Crop in M1 Generation (Sesamum Indicum L.)
The main objective for plant breeding is to increase genetic diversity. Mutation induction is a method to increase genetic diversity associated with selection, recombination, or a combination of these approaches in plant breeding. The present research was aimed to compare efficacy of different doses of Gamma rays (150, 200, 250, 300 and 350 Gy and zero dose control) on the sesame morphological ...
متن کاملGenetic Algorithm for Automatic Generation of Representative Test Suite for Mutation Testing
Discovering bugs in software towards quality of software is given paramount importance in research arena. Towards this end automatic test case generation became essential as manual test data generation and adding test oracles is tedious task. It is more so when there are no formal specifications to unearth the faults in test outcome. Therefore, it is important to generate representative test se...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2004